package com.kuang.gulimall.ware.feign;


import com.kuang.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-product")
public interface ProductFeign {

    //请求路径，可以写api，开头，也可以直接写，带api从网关出发
    //1,让所有的请求经过网关，@FeignClient("gulimall-gateway")
    // @RequestMapping("api/product/skuinfo/info/{skuId}")
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);


}
